package bingo.component.amchart.region;

import java.util.LinkedList;
import java.util.List;

import bingo.component.amchart.graphics.BaseGraphic;

/**
 * Jul 3, 2008 5:37:26 PM
 * Author:yangdongyu(yangdy@bingosoft.net)
 * ReadMe:
 * ChangeLog:
 */
public class Data extends BaseGraphic {

	private String name;
	private String description;
	private String url;
	private String target;
	private String plan;
	private String fact;
	private String color;
	private String code;

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	@Override
	protected List<String> getIgnoredProperties() {
		List<String> ignoredProperties = new LinkedList<String>();
		ignoredProperties.add("alias");
		return ignoredProperties;
	}
	
	

	@Override
	protected List<String> getSubElementProperties() {
		List<String> subElementProperties = new LinkedList<String>();
		subElementProperties.add("name");
		subElementProperties.add("url");
		subElementProperties.add("description");
		subElementProperties.add("code");
		
		
		subElementProperties.add("color");
		subElementProperties.add("plan");
		subElementProperties.add("fact");
		return subElementProperties;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public GraphicType getGraphicType() {
		return null;
	}

	public boolean isRootElement() {
		return false;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getPlan() {
		return plan;
	}

	public void setPlan(String plan) {
		this.plan = plan;
	}

	public String getFact() {
		return fact;
	}

	public void setFact(String fact) {
		this.fact = fact;
	}
}
